﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类vInvoiceExport
	/// </summary>
	[Serializable]
	public class vInvoiceExport : Entity 
	{ 
		 public vInvoiceExport() 
            : base("vInvoiceExport") 
        { 

        }


		#region Model
		private string _InvoiceType;
		private int _BillID;
		private string _ModifyDate;
		private string _CustomerNo;
		private string _InvoiceFMTitle;
		private string _InvoiceFMTaxNo;
		private string _InvoiceFMAddr;
		private string _InvoiceFMAccount;
		private string _NOTE;
		private string _Bill1;
		private string _Bill2;
		private string _Bill3;
		private string _UserDoc;
		private string _UserVerify;
		private string _UserGet;
		private string _InvoiceTOTitle;
		private string _InvoiceTOTaxNo;
		private string _InvoiceTOAddr;
		private string _InvoiceTOAccount;
		private string _GoodsName;
		private string _FeeType1;
		private string _Model1;
		private string _Unit1;
		private int? _QTY1;
		private string _Price1;
		private string _TaxRate1;
		private string _TAX;
		private int? _Discount1;
		private int? _Discount2;
		private int? _InvoiceStatus;
	 
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceType
		{
			get{ return _InvoiceType; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceType,_InvoiceType,value);
				this._InvoiceType = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int BillID
		{
			get{ return _BillID; }
			set
			{
				this.OnPropertyValueChange(_.BillID,_BillID,value);
				this._BillID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ModifyDate
		{
			get{ return _ModifyDate; }
			set
			{
				this.OnPropertyValueChange(_.ModifyDate,_ModifyDate,value);
				this._ModifyDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CustomerNo
		{
			get{ return _CustomerNo; }
			set
			{
				this.OnPropertyValueChange(_.CustomerNo,_CustomerNo,value);
				this._CustomerNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceFMTitle
		{
			get{ return _InvoiceFMTitle; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceFMTitle,_InvoiceFMTitle,value);
				this._InvoiceFMTitle = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceFMTaxNo
		{
			get{ return _InvoiceFMTaxNo; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceFMTaxNo,_InvoiceFMTaxNo,value);
				this._InvoiceFMTaxNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceFMAddr
		{
			get{ return _InvoiceFMAddr; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceFMAddr,_InvoiceFMAddr,value);
				this._InvoiceFMAddr = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceFMAccount
		{
			get{ return _InvoiceFMAccount; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceFMAccount,_InvoiceFMAccount,value);
				this._InvoiceFMAccount = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string NOTE
		{
			get{ return _NOTE; }
			set
			{
				this.OnPropertyValueChange(_.NOTE,_NOTE,value);
				this._NOTE = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Bill1
		{
			get{ return _Bill1; }
			set
			{
				this.OnPropertyValueChange(_.Bill1,_Bill1,value);
				this._Bill1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Bill2
		{
			get{ return _Bill2; }
			set
			{
				this.OnPropertyValueChange(_.Bill2,_Bill2,value);
				this._Bill2 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Bill3
		{
			get{ return _Bill3; }
			set
			{
				this.OnPropertyValueChange(_.Bill3,_Bill3,value);
				this._Bill3 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserDoc
		{
			get{ return _UserDoc; }
			set
			{
				this.OnPropertyValueChange(_.UserDoc,_UserDoc,value);
				this._UserDoc = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserVerify
		{
			get{ return _UserVerify; }
			set
			{
				this.OnPropertyValueChange(_.UserVerify,_UserVerify,value);
				this._UserVerify = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserGet
		{
			get{ return _UserGet; }
			set
			{
				this.OnPropertyValueChange(_.UserGet,_UserGet,value);
				this._UserGet = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceTOTitle
		{
			get{ return _InvoiceTOTitle; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceTOTitle,_InvoiceTOTitle,value);
				this._InvoiceTOTitle = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceTOTaxNo
		{
			get{ return _InvoiceTOTaxNo; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceTOTaxNo,_InvoiceTOTaxNo,value);
				this._InvoiceTOTaxNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceTOAddr
		{
			get{ return _InvoiceTOAddr; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceTOAddr,_InvoiceTOAddr,value);
				this._InvoiceTOAddr = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InvoiceTOAccount
		{
			get{ return _InvoiceTOAccount; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceTOAccount,_InvoiceTOAccount,value);
				this._InvoiceTOAccount = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string GoodsName
		{
			get{ return _GoodsName; }
			set
			{
				this.OnPropertyValueChange(_.GoodsName,_GoodsName,value);
				this._GoodsName = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string FeeType1
		{
			get{ return _FeeType1; }
			set
			{
				this.OnPropertyValueChange(_.FeeType1,_FeeType1,value);
				this._FeeType1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Model1
		{
			get{ return _Model1; }
			set
			{
				this.OnPropertyValueChange(_.Model1,_Model1,value);
				this._Model1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Unit1
		{
			get{ return _Unit1; }
			set
			{
				this.OnPropertyValueChange(_.Unit1,_Unit1,value);
				this._Unit1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? QTY1
		{
			get{ return _QTY1; }
			set
			{
				this.OnPropertyValueChange(_.QTY1,_QTY1,value);
				this._QTY1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Price1
		{
			get{ return _Price1; }
			set
			{
				this.OnPropertyValueChange(_.Price1,_Price1,value);
				this._Price1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string TaxRate1
		{
			get{ return _TaxRate1; }
			set
			{
				this.OnPropertyValueChange(_.TaxRate1,_TaxRate1,value);
				this._TaxRate1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string TAX
		{
			get{ return _TAX; }
			set
			{
				this.OnPropertyValueChange(_.TAX,_TAX,value);
				this._TAX = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? Discount1
		{
			get{ return _Discount1; }
			set
			{
				this.OnPropertyValueChange(_.Discount1,_Discount1,value);
				this._Discount1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? Discount2
		{
			get{ return _Discount2; }
			set
			{
				this.OnPropertyValueChange(_.Discount2,_Discount2,value);
				this._Discount2 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? InvoiceStatus
		{
			get{ return _InvoiceStatus; }
			set
			{
				this.OnPropertyValueChange(_.InvoiceStatus,_InvoiceStatus,value);
				this._InvoiceStatus = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.InvoiceType,
				_.BillID,
				_.ModifyDate,
				_.CustomerNo,
				_.InvoiceFMTitle,
				_.InvoiceFMTaxNo,
				_.InvoiceFMAddr,
				_.InvoiceFMAccount,
				_.NOTE,
				_.Bill1,
				_.Bill2,
				_.Bill3,
				_.UserDoc,
				_.UserVerify,
				_.UserGet,
				_.InvoiceTOTitle,
				_.InvoiceTOTaxNo,
				_.InvoiceTOAddr,
				_.InvoiceTOAccount,
				_.GoodsName,
				_.FeeType1,
				_.Model1,
				_.Unit1,
				_.QTY1,
				_.Price1,
				_.TaxRate1,
				_.TAX,
				_.Discount1,
				_.Discount2,
				_.InvoiceStatus
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_InvoiceType,
				_BillID,
				_ModifyDate,
				_CustomerNo,
				_InvoiceFMTitle,
				_InvoiceFMTaxNo,
				_InvoiceFMAddr,
				_InvoiceFMAccount,
				_NOTE,
				_Bill1,
				_Bill2,
				_Bill3,
				_UserDoc,
				_UserVerify,
				_UserGet,
				_InvoiceTOTitle,
				_InvoiceTOTaxNo,
				_InvoiceTOAddr,
				_InvoiceTOAccount,
				_GoodsName,
				_FeeType1,
				_Model1,
				_Unit1,
				_QTY1,
				_Price1,
				_TaxRate1,
				_TAX,
				_Discount1,
				_Discount2,
				_InvoiceStatus
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "InvoiceType":
                    this._InvoiceType = DataHelper.ConvertValue<string>(value);
                    break; 
				case "BillID":
                    this._BillID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "ModifyDate":
                    this._ModifyDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CustomerNo":
                    this._CustomerNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceFMTitle":
                    this._InvoiceFMTitle = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceFMTaxNo":
                    this._InvoiceFMTaxNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceFMAddr":
                    this._InvoiceFMAddr = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceFMAccount":
                    this._InvoiceFMAccount = DataHelper.ConvertValue<string>(value);
                    break; 
				case "NOTE":
                    this._NOTE = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Bill1":
                    this._Bill1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Bill2":
                    this._Bill2 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Bill3":
                    this._Bill3 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserDoc":
                    this._UserDoc = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserVerify":
                    this._UserVerify = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserGet":
                    this._UserGet = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceTOTitle":
                    this._InvoiceTOTitle = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceTOTaxNo":
                    this._InvoiceTOTaxNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceTOAddr":
                    this._InvoiceTOAddr = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InvoiceTOAccount":
                    this._InvoiceTOAccount = DataHelper.ConvertValue<string>(value);
                    break; 
				case "GoodsName":
                    this._GoodsName = DataHelper.ConvertValue<string>(value);
                    break; 
				case "FeeType1":
                    this._FeeType1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Model1":
                    this._Model1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Unit1":
                    this._Unit1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "QTY1":
                    this._QTY1 = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "Price1":
                    this._Price1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "TaxRate1":
                    this._TaxRate1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "TAX":
                    this._TAX = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Discount1":
                    this._Discount1 = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "Discount2":
                    this._Discount2 = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "InvoiceStatus":
                    this._InvoiceStatus = DataHelper.ConvertValue<int?>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "InvoiceType":
                    return this._InvoiceType; 
				case "BillID":
                    return this._BillID; 
				case "ModifyDate":
                    return this._ModifyDate; 
				case "CustomerNo":
                    return this._CustomerNo; 
				case "InvoiceFMTitle":
                    return this._InvoiceFMTitle; 
				case "InvoiceFMTaxNo":
                    return this._InvoiceFMTaxNo; 
				case "InvoiceFMAddr":
                    return this._InvoiceFMAddr; 
				case "InvoiceFMAccount":
                    return this._InvoiceFMAccount; 
				case "NOTE":
                    return this._NOTE; 
				case "Bill1":
                    return this._Bill1; 
				case "Bill2":
                    return this._Bill2; 
				case "Bill3":
                    return this._Bill3; 
				case "UserDoc":
                    return this._UserDoc; 
				case "UserVerify":
                    return this._UserVerify; 
				case "UserGet":
                    return this._UserGet; 
				case "InvoiceTOTitle":
                    return this._InvoiceTOTitle; 
				case "InvoiceTOTaxNo":
                    return this._InvoiceTOTaxNo; 
				case "InvoiceTOAddr":
                    return this._InvoiceTOAddr; 
				case "InvoiceTOAccount":
                    return this._InvoiceTOAccount; 
				case "GoodsName":
                    return this._GoodsName; 
				case "FeeType1":
                    return this._FeeType1; 
				case "Model1":
                    return this._Model1; 
				case "Unit1":
                    return this._Unit1; 
				case "QTY1":
                    return this._QTY1; 
				case "Price1":
                    return this._Price1; 
				case "TaxRate1":
                    return this._TaxRate1; 
				case "TAX":
                    return this._TAX; 
				case "Discount1":
                    return this._Discount1; 
				case "Discount2":
                    return this._Discount2; 
				case "InvoiceStatus":
                    return this._InvoiceStatus; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","vInvoiceExport");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceType = new Field("InvoiceType","vInvoiceExport","InvoiceType");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field BillID = new Field("BillID","vInvoiceExport","BillID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ModifyDate = new Field("ModifyDate","vInvoiceExport","ModifyDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CustomerNo = new Field("CustomerNo","vInvoiceExport","CustomerNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceFMTitle = new Field("InvoiceFMTitle","vInvoiceExport","InvoiceFMTitle");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceFMTaxNo = new Field("InvoiceFMTaxNo","vInvoiceExport","InvoiceFMTaxNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceFMAddr = new Field("InvoiceFMAddr","vInvoiceExport","InvoiceFMAddr");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceFMAccount = new Field("InvoiceFMAccount","vInvoiceExport","InvoiceFMAccount");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field NOTE = new Field("NOTE","vInvoiceExport","NOTE");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Bill1 = new Field("Bill1","vInvoiceExport","Bill1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Bill2 = new Field("Bill2","vInvoiceExport","Bill2");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Bill3 = new Field("Bill3","vInvoiceExport","Bill3");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserDoc = new Field("UserDoc","vInvoiceExport","UserDoc");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserVerify = new Field("UserVerify","vInvoiceExport","UserVerify");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserGet = new Field("UserGet","vInvoiceExport","UserGet");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceTOTitle = new Field("InvoiceTOTitle","vInvoiceExport","InvoiceTOTitle");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceTOTaxNo = new Field("InvoiceTOTaxNo","vInvoiceExport","InvoiceTOTaxNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceTOAddr = new Field("InvoiceTOAddr","vInvoiceExport","InvoiceTOAddr");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceTOAccount = new Field("InvoiceTOAccount","vInvoiceExport","InvoiceTOAccount");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GoodsName = new Field("GoodsName","vInvoiceExport","GoodsName");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field FeeType1 = new Field("FeeType1","vInvoiceExport","FeeType1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Model1 = new Field("Model1","vInvoiceExport","Model1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Unit1 = new Field("Unit1","vInvoiceExport","Unit1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field QTY1 = new Field("QTY1","vInvoiceExport","QTY1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Price1 = new Field("Price1","vInvoiceExport","Price1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field TaxRate1 = new Field("TaxRate1","vInvoiceExport","TaxRate1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field TAX = new Field("TAX","vInvoiceExport","TAX");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Discount1 = new Field("Discount1","vInvoiceExport","Discount1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Discount2 = new Field("Discount2","vInvoiceExport","Discount2");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InvoiceStatus = new Field("InvoiceStatus","vInvoiceExport","InvoiceStatus");
		}
		#endregion

 
	}
}

